xend: Save the state of PPCIs after hot-plug events.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:16:01 +0000 (11:16 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:16:01 +0000 (11:16 +0100)
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
tools/python/xen/xend/XendNode.py

index 61779fa77efe08c528c91d9531bc3b4436d31df6..1a40735cba82e47dc3bc055adc5b42b3edcba5aa 100644 (file)
@@ -363,6 +363,8 @@ class XendNode:
         ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString())
         XendPPCI(ppci_uuid, ppci_record)
 
+        self.save_PPCIs()
+
 
     def remove_PPCI(self, pci_name):
         # Update lspci info
@@ -373,6 +375,8 @@ class XendNode:
         ppci_ref = XendPPCI.get_by_sbdf(domain, bus, slot, func)
         XendAPIStore.get(ppci_ref, "PPCI").destroy()
 
+        self.save_PPCIs()
+
 
     def add_PSCSI(self):
         # TODO